<h1>Listing reservations</h1>

<table>
  <tr>
    <th>Arrivedate</th>
    <th>Exitdate</th>
    <th>Numadults</th>
    <th>Numchildren</th>
    <th>Room</th>
    <th>Guest</th>
    <th>Ischecked</th>
  </tr>

<% @reservations.each do |reservation| %>
  <tr>
    <td><%=h reservation.arriveDate %></td>
    <td><%=h reservation.exitDate %></td>
    <td><%=h reservation.numAdults %></td>
    <td><%=h reservation.numChildren %></td>
    <td><%=h reservation.room_id %></td>
    <td><%=h reservation.guest_id %></td>
    <td><%=h reservation.isChecked %></td>
    <td><%= link_to 'Show', reservation %></td>
    <td><%= link_to 'Edit', edit_reservation_path(reservation) %></td>
    <td><%= link_to 'Destroy', reservation, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New reservation', new_reservation_path %>